<!--/*--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script src="include/js/common.js" type="text/javascript"></script>
</head>
<body><!--*/-->
<!--{&header,${title!},内容管理&nbsp;&raquo;&nbsp;分类管理&nbsp;&raquo;&nbsp;管理分类}-->
<!--{!#system,common}-->
<div id="newslisttab">
    <ul>
        <li style="float:right"><a href="#{cms/addcategory}#">添加分类</a></li>
        <li style="float:right" class="active"><a>管理分类</a></li>
    </ul>
</div>
<form method="post" action="" enctype="multipart/form-data">
    <table cellspacing='0' cellpadding='0' width='100%' class='listtable'>
        <tr>
            <th width="5%">排序</th>
            <th width="5%">ID</th>
            <th>分类名称</th>
            <th width="10%">绑定模型</th>
            <th width="200">管理操作</th>
        </tr>
        <!--{loop $data $v}-->

        <tr>
            <td>${v[listorder]}</td>
            <td>${v[catid]}</td>
            <td>{=str_repeat('　',count(explode(',',$v['parentids']))*2-2)}${v[catname]}</td>
            <td>{= $MODEL[$v['modelid']]['name']}</td>
            <td align="center">
                <a href='#{/cms/addcategory/${v[catid]}}#'>添加子分类</a> |
                <!--{if $v['child']==1}-->
                    <a href='#{/cms/category/${v[catid]}}#'>子分类</a> |
                <!--{else}-->
                    <span style="color:#CCCCCC">子分类</span> |
                <!--{/if}-->
                <a href='#{/cms/editcategory/${v[parentid]}/${v[catid]}}#'>修改</a>
            </td>
        </tr>
        <!--{/loop}-->
        
    </table>
</form>
<!--{&footer}-->
<!--/*-->
</body>
</html><!--*/-->